weights = input("请输入小朋友的体重，并用逗号分隔！\n")
weightList = weights.split(",")
# 将字符串列表转换成数字列表
weightList = [int(weightList[i]) for i in range(len(weightList))]
# 求平均值
sum = 0
for i in range(len(weightList)):
    sum = sum + weightList[i]
average = sum / len(weightList)
# 获取大于平均体重身高的值
for i in range(len(weightList)):
    if weightList[i] > average:
        print(weightList[i], end=" ")